<!DOCTYPE html>
<html lang="en">
<head>
<title>JwsCms内容管理系统</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="__CSS__/style.css" />
<script src="__STATIC__/js/jquery-1.7.2.min.js"></script> 
<script type="text/javascript">
        $(function(){
          $(".itab li").click(function(){
            $(this).addClass('selected').siblings().removeClass('selected');
            $(".content_view").eq($(".itab li").index(this)).addClass('selected').siblings().removeClass('selected');
          });

        });


</script>

</head>
<body>
  
  <div class="place"><span>位置：</span><ul class="placeul"><li><a href="#">首页</a></li><li><a href="#">表单</a></li></ul></div>
     <div class="formbody">
  <div id="usual1" class="usual"> 
    <ul class="itab"> 
	    <volist name="Think.config.CONFIG_GROUP_LIST" id="group">
			<li <eq name="id" value="$key">class="selected"</eq>><a href="{:U('?id='.$key)}">{$group}配置</a></li>
		</volist>
    </ul>
<form action="{:U('save')}" method="post" class="form-horizontal">
        <ul class="forminfo">
		<div class="form-item content_view tab selected">
     	<volist name="list" id="config">

            <li> 
			<label style="width:100px;">{$config.title}</label>
			<switch name="config.type">
			<case value="0">
			<input type="text" class="dfinput" name="config[{$config.name}]" value="{$config.value}"><i> <notempty name="$config['remark']">（{$config.remark}）</notempty></i>
			</case>
			<case value="1">
			<input type="text" class="dfinput" name="config[{$config.name}]" value="{$config.value}"><i><notempty name="$config['remark']">（{$config.remark}）</notempty></i>
			</case>
			<case value="2">
			<label class="textarea input-large">
				<textarea name="config[{$config.name}]" class="dftext" style="height:100px;">{$config.value}</textarea>
			</label>
			</case>
			<case value="3">
			<label class="textarea input-large">
				<textarea name="config[{$config.name}]" class="dftext" style="height:100px;">{$config.value}</textarea>
			</label>
			</case>
			<case value="4">
            <div class="vocation">
				<select name="config[{$config.name}]" class="dfselect">
					<volist name=":parse_config_attr($config['extra'])" id="vo">
						<option value="{$key}" <eq name="config.value" value="$key">selected</eq>>{$vo}</option>
					</volist>
				</select>
              </div>
			</case>
			</switch>
			<li>
	
		</volist>
	</div>
	</ul>
		<div class="form-item">
			<label class="item-label"></label>
			<div class="controls">
				<empty name="list"><button type="submit" disabled class="btn submit-btn disabled" target-form="form-horizontal">确 定</button><else/><button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button></empty>
				
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>







 </form> 
  </div>
  </body>
  </html>



<!--extend name="Public/base"/>
<block name="body">
<style>
	.controls input,.controls select,.controls textarea{ width:350px;}
	.controls textarea{ height: 100px;}

</style>
<div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
            <h5>{$meta_title}</h5>
             <div class="buttons">
              <a class="btn"  href="{:U('Admin/Config/Add')}">新增设置</a>
                 
             </div>
           </div>
          <div class="widget-content">
            <ul class="nav nav-tabs">
				<volist name="Think.config.CONFIG_GROUP_LIST" id="group">
					<li <eq name="id" value="$key">class="active"</eq>><a href="{:U('?id='.$key)}">{$group}配置</a></li>
				</volist>
            </ul>
	         <form action="{:U('save')}" method="post" class="form-horizontal">
     	<volist name="list" id="config">
		<div class="form-item">
			<label class="item-label">{$config.title}<span class="check-tips">（{$config.remark}）</span> </label>
			<div class="controls">
			<switch name="config.type">
			<case value="0">
			<input type="text" class="text input-small" name="config[{$config.name}]" value="{$config.value}">
			</case>
			<case value="1">
			<input type="text" class="text input-large" name="config[{$config.name}]" value="{$config.value}">
			</case>
			<case value="2">
			<label class="textarea input-large">
				<textarea name="config[{$config.name}]">{$config.value}</textarea>
			</label>
			</case>
			<case value="3">
			<label class="textarea input-large">
				<textarea name="config[{$config.name}]">{$config.value}</textarea>
			</label>
			</case>
			<case value="4">
			<select name="config[{$config.name}]">
				<volist name=":parse_config_attr($config['extra'])" id="vo">
					<option value="{$key}" <eq name="config.value" value="$key">selected</eq>>{$vo}</option>
				</volist>
			</select>
			</case>
			</switch>
				
			</div>
		</div>
		</volist>
		<div class="form-item">
			<label class="item-label"></label>
			<div class="controls">
				<empty name="list"><button type="submit" disabled class="btn submit-btn disabled" target-form="form-horizontal">确 定</button><else/><button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button></empty>
				
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>
	</form>
          </div>
        </div>
</block-->
